<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
  <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %></h1>
<br/>
<center>
    <form action="${pageContext.request.contextPath}/shoppingCarServlet" method="post">
      <table>
        <tr>
          <th>商品名称</th>
          <th>商品单价</th>
          <th>介绍</th>
          <th>操作</th>
        </tr>
        <tr>
           <input type="text" name="name" value="香果"><br>
            <input type="text" name="price" value="20"><br>
            <input type="text" name="desc" value="香"><br>
            <input type="submit" value="放入购物车"><br>
        </tr>
          <tr>
              <input type="text" name="name" value="百草味"><br>
              <input type="text" name="price" value="50"><br>
              <input type="text" name="desc" value="香"><br>
              <input type="submit" value="放入购物车"><br>
          </tr>
          <tr>
              <input type="text" name="name" value="辣条"><br>
              <input type="text" name="price" value="5"><br>
              <input type="text" name="desc" value="香"><br>
              <input type="submit" value="放入购物车"><br>
          </tr>
      </table>
    </form>
        <a href="show.jsp" >查看购物车</a>
</center>
</body>
</html>